import java.util.ArrayList;
import java.util.List;


 class  Animal1 {
    private String name;
    private String species;
    private int age;

    public Animal1(String name, String species, int age) {
        this.name = name;
        this.species = species;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public String getSpecies() {
        return species;
    }

    public int getAge() {
        return age;
    }

    public String toString() {
        return "Animal{" +
                "name='" + name + '\'' +
                ", species='" + species + '\'' +
                ", age=" + age +
                '}';
    }
}

class Zoo {
    private List<Animal1> animals;

    public Zoo() {
        animals = new ArrayList<>();
    }

    public void addAnimal(Animal1 animal) {
        animals.add(animal);
    }

    public void removeAnimal(Animal1 animal) {
        animals.remove(animal);
    }

    public List<Animal1> getAnimals() {
        return animals;
    }
}

public class ZooManagementSystem {
    public static void main(String[] args) {
        Zoo zoo = new Zoo();

        Animal1 lion = new Animal1("Leo", "Lion", 5);
        Animal1 elephant = new Animal1("Ellie", "Elephant", 10);

        zoo.addAnimal(lion);
        zoo.addAnimal(elephant);

        System.out.println("Animals in the zoo:");
        for (Animal1 animal : zoo.getAnimals()) {
            System.out.println(animal);
        }

        zoo.removeAnimal(lion);

        System.out.println("After removing Lion:");
        for (Animal1 animal : zoo.getAnimals()) {
            System.out.println(animal);
        }
    }
}